package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 product_list
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
public class ProductList extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 积分商品名 */
    @Excel(name = "积分商品名")
    private String title;

    /** 所属盒子id */
    @Excel(name = "所属盒子id")
    private Long productId;

    /** 封面图 */
    @Excel(name = "封面图")
    private String imgurl;

    /** 兑换所属积分 */
    @Excel(name = "兑换所属积分")
    private Long price;

    /** 官方售价 */
    @Excel(name = "官方售价")
    private BigDecimal money;

    /** 回收价格 */
    @Excel(name = "回收价格")
    private BigDecimal outMoney;

    /** 抽中的概率 */
    @Excel(name = "抽中的概率")
    private Long num;

    /** 兑换数量 */
    @Excel(name = "兑换数量")
    private Long saleNum;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 详情 */
    @Excel(name = "详情")
    private String content;

    /** 是否可以直接兑换 1 是 2 否 */
    @Excel(name = "是否可以直接兑换 1 是 2 否")
    private Integer isDui;

    /** 状态1 正常 2 下架 3 删除 */
    @Excel(name = "状态1 正常 2 下架 3 删除")
    private Integer status;

    /** 添加时间 */
    @Excel(name = "添加时间")
    private Long addtime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long creator;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }
    public void setMoney(BigDecimal money) 
    {
        this.money = money;
    }

    public BigDecimal getMoney() 
    {
        return money;
    }
    public void setOutMoney(BigDecimal outMoney) 
    {
        this.outMoney = outMoney;
    }

    public BigDecimal getOutMoney() 
    {
        return outMoney;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setIsDui(Integer isDui) 
    {
        this.isDui = isDui;
    }

    public Integer getIsDui() 
    {
        return isDui;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setAddtime(Long addtime) 
    {
        this.addtime = addtime;
    }

    public Long getAddtime() 
    {
        return addtime;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("productId", getProductId())
            .append("imgurl", getImgurl())
            .append("price", getPrice())
            .append("money", getMoney())
            .append("outMoney", getOutMoney())
            .append("num", getNum())
            .append("saleNum", getSaleNum())
            .append("stock", getStock())
            .append("content", getContent())
            .append("isDui", getIsDui())
            .append("status", getStatus())
            .append("addtime", getAddtime())
            .append("creator", getCreator())
            .append("createDate", getCreateDate())
            .toString();
    }
}
